Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the delete button in the edit form of an event #69

Merged
merged 14 commits into from
Feb 16, 2024
Merged

Conversation

amieiro
Copy link
Collaborator

@amieiro amieiro commented Feb 14, 2024

This PR adds the "Delete button"

image

Fixes #66

@amieiro amieiro marked this pull request as ready for review February 15, 2024 01:02
@trymebytes
Copy link
Collaborator

Just a personal observation, perhaps we can change the position of the delete button because having 3 buttons on the same row may be a bit confusing.
Screenshot 2024-02-15 at 11 23 34

includes/class-wporg-gp-translation-events-route.php Outdated Show resolved Hide resolved
assets/js/translation-events.js Outdated Show resolved Hide resolved
@trymebytes
Copy link
Collaborator

In a follow up PR, I'll suggest we have a single AJAX function handle all event form submissions.

@amieiro
Copy link
Collaborator Author

amieiro commented Feb 15, 2024

Just a personal observation, perhaps we can change the position of the delete button because having 3 buttons on the same row may be a bit confusing. Screenshot 2024-02-15 at 11 23 34

I like to have all the buttons in the same row, with different styles (one specific for deleting), rather than having them in 2 rows.

image

Copy link
Member

@psrpinto psrpinto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@psrpinto psrpinto mentioned this pull request Feb 16, 2024
@amieiro amieiro dismissed trymebytes’s stale review February 16, 2024 13:23

This will be improved in a future PR, not in this one.

@amieiro amieiro merged commit eba1a3c into trunk Feb 16, 2024
2 checks passed
@amieiro amieiro deleted the delete-button branch February 16, 2024 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a Delete link to the Edit screen
3 participants